﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Lesson02
{
    public partial class CrossPageProcessing : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.PreviousPage == null)
            {
                this.lblResult.Text = "There is no result in PreviousPage";
            }
            else
            {
                //this.lblResult.Text = this.Server.HtmlEncode((this.PreviousPage.FindControl("txtName") as TextBox).Text);
                this.lblResult.Text = this.PreviousPage.Name;
            }
        }
    }
}